package demo6;

public class Test {
    public static void main(String[] args) {
        MinStack minStack = new MinStack();
        minStack.push(521);
        minStack.push(-1024);
        minStack.push(-1024);
        minStack.push(521);

        int val = 0;
        minStack.pop();
        val = minStack.getMin();
        System.out.println(val);

        minStack.pop();
        val = minStack.getMin();
        System.out.println(val);

        minStack.pop();
        val = minStack.getMin();
        System.out.println(val);
    }
}
